#include "ros/ros.h"

#include <ros1_protobuf_msg_bridge/srv/StartPathTeach.h>

#include <string>

bool srvHandle1(ros1_protobuf_msg_bridge::StartPathTeachRequest &req, ros1_protobuf_msg_bridge::StartPathTeachResponse &res) {
    ROS_INFO("Request1: %lu , %s", req.header().timestamp(), req.header().frame_id().c_str());

    res.set_ready(true);

    return true;
}

int main(int argc, char **argv) {
    ros::init(argc, argv, "srv_server");
    ros::NodeHandle n;

    ros::ServiceServer service1 = n.advertiseService("t_srv1", srvHandle1);
    ROS_INFO("serv_test.");

    ros::spin();

    return 0;
}
